<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditShippingMethodBaseProperties.ascx.cs" Inherits="UCommerce.Web.UI.Settings.Orders.EditShippingMethodBaseProperties" %>
<%@ Import Namespace="UCommerce.Presentation.Web" %>
<%@ Register tagPrefix="commerce" tagName="ValidationSummary" src="../../Controls/ValidationSummaryDisplay.ascx" %>

<commerce:ValidationSummary  runat="server" />
<div class="propertyPane leftAligned">
    <table style="width: 100%">
        <tr>
            <th class="smallWidth"><asp:Localize runat="server" meta:resourceKey="Name" /></th>
            <td>
                <asp:TextBox runat="server" ID="NameTextBox" Text="<%# View.IsNew ? QueryString.Common.Name : View.ShippingMethod.Name %>" CssClass="mediumWidth" />
                <asp:RequiredFieldValidator 
                    id="NameRequiredFieldValidator"
                    runat="server" 
                    ControlToValidate="NameTextBox" 
                    Text="*" 
                    ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>'
                    CssClass="validator" />
				<asp:CustomValidator 
                    runat="server" 
                    id="UniqueNameCustomValidator" 
                    ControlToValidate="NameTextBox" 
                    OnServerValidate="NameTextBox_CustomValidation" 
                    Text="*" 
                    ErrorMessage='<%# GetLocalResourceObject("Name.Text")%>' 
                    CssClass="validator"/>
            </td>
        </tr>            
        <tr>
            <th><asp:Localize runat="server" meta:resourceKey="PaymentMethod" /></th>
            <td><asp:DropDownList runat="server" ID="PaymentMethodDropDown" DataSource="<%# View.PaymentMethods %>" DataValueField="PaymentMethodId" DataTextField="Name" CssClass="mediumWidth" /></td>
        </tr>
        <tr>
            <th><asp:Localize runat="server" meta:resourceKey="ShippingMethodCalculator" /></th>
            <td><asp:DropDownList runat="server" ID="ShippingMethodCalculatorDropDown" DataSource="<%# View.ShippingMethodServices %>" CssClass="mediumWidth" /></td>
        </tr>
    </table>
</div>
<div class="propertyPane leftAligned">
	<table>
		<tr>
			<th style="width: 150px;"><asp:Localize runat="server" meta:resourceKey="Image" /></th>                    
			<td><asp:PlaceHolder ID="ImagePicker" runat="server"></asp:PlaceHolder></td>
		</tr>
	</table>
</div>